package com.e3.basdoc.warehouse.model;

import com.e3.web.core.model.SuperModel;

public class WarehouseModel extends SuperModel implements WarehouseFields{
	/**
	 * 
	 */
	private static final long serialVersionUID = -8625577302661325083L;

	private String code;
	
	private String name;
	
	private Integer type;
	
	private String administrator;
	
	private String contractWay;
	
	private Integer status;
	
	public String getCode() {
		return get(WarehouseModel.CODE);
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return get(WarehouseModel.NAME);
	}

	public void setName(String name) {
		set(WarehouseModel.NAME,name);
	}

	public Integer getType() {
		return getIntValue(WarehouseModel.TYPE,WarehouseType.TYPE_NORMAL);
	}

	public void setType(Integer type) {
		set(WarehouseModel.TYPE,type);
	}

	public String getAdministrator() {
		return get(WarehouseModel.ADMINISTRATOR);
	}

	public void setAdministrator(String administrator) {
		set(WarehouseModel.ADMINISTRATOR,administrator);
	}

	public String getContractWay() {
		return get(WarehouseModel.CONTRACT_WAY);
	}

	public void setContractWay(String contractWay) {
		set(WarehouseModel.CONTRACT_WAY,contractWay);
	}

	public Integer getStatus() {
		return getIntValue(WarehouseModel.STATUS,WarehouseStatus.STATUS_NORMAL);
	}

	public void setStatus(Integer status) {
		set(WarehouseModel.STATUS,status);
	}

	public String toString(){
		return getName();
	}
}
